package com.hqyj.ssm_project.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Application {
    private Integer applicationId;

    private Integer userId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applicationStartTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applicationEndTime;
    private String applicationItem;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applicationCreateTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applicationCommitTime;
    private Approve approve;
    private Details details;

    public Integer getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(Integer applicationId) {
        this.applicationId = applicationId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getApplicationStartTime() {
        return applicationStartTime;
    }

    public void setApplicationStartTime(Date applicationStartTime) {
        this.applicationStartTime = applicationStartTime;
    }

    public Date getApplicationEndTime() {
        return applicationEndTime;
    }

    public void setApplicationEndTime(Date applicationEndTime) {
        this.applicationEndTime = applicationEndTime;
    }

    public String getApplicationItem() {
        return applicationItem;
    }

    public void setApplicationItem(String applicationItem) {
        this.applicationItem = applicationItem == null ? null : applicationItem.trim();
    }

    public Date getApplicationCreateTime() {
        return applicationCreateTime;
    }

    public void setApplicationCreateTime(Date applicationCreateTime) {
        this.applicationCreateTime = applicationCreateTime;
    }

    public Date getApplicationCommitTime() {
        return applicationCommitTime;
    }

    public void setApplicationCommitTime(Date applicationCommitTime) {
        this.applicationCommitTime = applicationCommitTime;
    }

    public Approve getApprove() {
        return approve;
    }

    public void setApprove(Approve approve) {
        this.approve = approve;
    }

    public Details getDetails() {
        return details;
    }

    public void setDetails(Details details) {
        this.details = details;
    }

    @Override
    public String toString() {
        return "Application{" +
                "applicationId=" + applicationId +
                ", userId=" + userId +
                ", applicationStartTime=" + applicationStartTime +
                ", applicationEndTime=" + applicationEndTime +
                ", applicationItem='" + applicationItem + '\'' +
                ", applicationCreateTime=" + applicationCreateTime +
                ", applicationCommitTime=" + applicationCommitTime +
                ", approve=" + approve +
                '}';
    }
}